// import React, { useCallback, useState } from 'react';
import {
  Router,
  Switch,
  Route
} from "react-router-dom";
import './App.css';
import App1 from './App1';
import About from './About';
import history from './history';

const App = () => {
  return (
    <Router history={history}  >
      layout
      <Switch>
        <Route path="/about" component={About} />
        <Route path="/" component={App1} />
      </Switch>
    </Router>
  )
}

export default App;
